<style xmlns="http://www.w3.org/1999/html">
    table tr{display: inline-block;margin-bottom: 10px;}
</style>
<div class="pageContent">
	<form method="post" action="{:U('client/Client/add')}" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent client_add" layoutH="56">
		<p style="float: right;width: 180px;">
		    <img src="" width="150" height="180" />
		    <input id="testFileInput2" type="file" name="image2"
			     uploaderOption="{
			swf:'uploadify/scripts/uploadify.swf',
			uploader:'demo/common/ajaxDone.html',
			formData:{PHPSESSID:'xxx', ajax:1},
			queueID:'fileQueue',
			buttonImage:'uploadify/img/add.jpg',
			buttonClass:'my-uploadify-button',
			width:102,
			auto:true
		}"
				/>
		    <input type="hidden" name="client_face" value="" />
		</p>
		    <p>
			  <label>客户名称：</label>
			  <input name="name"  type="text" size="30" value="{$data.name}" class="required" />
		    </p>
		    <p>
			  <label>昵称：</label>
			  <input name="nickname"  type="text" size="30" value="{$data.nickname}" />
		    </p>
		    <p>
			  <label>性别：</label>
			  <input type="radio" name="is_idcard" value="1" <if condition='$data.sex eq 1'> checked="checked" </if>>男<input type="radio" <if condition='$data.sex eq 0'> checked="checked" </if> name="is_idcard" value="2">女
		    </p>
		    <p>
			  <label>职务：</label>
			  <select class="add_select" name="capital">
				<option value="">请选择</option>
				<option value="10">程序员</option>
				<option selected="" value="50">工人</option>
				<option value="100">军人</option>
			  </select>
		    </p>
		    <p>
			  <label>身份证号：</label>
			  <input name="idcard"  type="text" size="30" value="{$data.idcard}" min="17" max="18" />
		    </p>
		    <p>
			  <label>出生日期：</label>
			  <input type="text" name="birthday" value="<if condition='$data.birthday'> {$data.birthday|date='Y-m-d',###} </if>" class="date" readonly="true"/>
			  <a class="inputDateButton" href="javascript:;">选择</a>
		    </p>
		    <p>
			  <label>宗教信仰：</label>
			  <input name="religion"  type="text" size="30" value="{$data.religion}" />
		    </p>
			<p>
				<label>民族：</label>
				<input name="nation" type="text" size="30" value="{$data.nation}" />
			</p>
		    <p>
			  <label>毕业学院：</label>
			  <input name="school" type="text" size="30" value="{$data.school}" />
		    </p>
		    <p>
			  <label>专业：</label>
			  <input name="major" type="text" size="30" value="{$data.major}" />
		    </p>
		    <p>
			  <label>学历：</label>
			  <select class="add_select" name="education">
				<option value="1">军人</option>
				<option value="2">程序员</option>
				<option selected="" value="3">企业家</option>
			  </select>
		    </p>
		    <p>
			  <label>籍贯：</label>
			  <input name="native" type="text" size="30" value="{$data.native}" />
		    </p>
		    <p>
			  <label>公司名称：</label>
			  <input name="company_name" type="text" size="30" value="{$data.company_name}" />
		    </p>
		    <p>
			  <label>公司地址：</label>
			  <input name="company_address" type="text" size="30" value="{$data.company_address}" />
		    </p>
		    <p>
			  <label>公司规模：</label>
			  <select class="add_select" name="company_scale">
				<option value="1">军人</option>
				<option value="2">程序员</option>
				<option selected="" value="3">企业家</option>
			  </select>
		    </p>
		    <p>
			  <label>工作性质：</label>
			  <select class="add_select" name="company_nature">
				<option value="1">军人</option>
				<option value="2">程序员</option>
				<option selected="" value="3">企业家</option>
			  </select>
		    </p>
		    <p>
			  <label>所属行业：</label>
			  <select class="add_select" name="industry">
				<option value="1">军人</option>
				<option value="2">程序员</option>
				<option selected="" value="3">企业家</option>
			  </select>
		    </p>
		    <p>
			  <label>直属人员：</label>
			  <select class="add_select" name="men_number">
				<option value="1">军人</option>
				<option value="2">程序员</option>
				<option selected="" value="3">企业家</option>
			  </select>
		    </p>
		    <p>
			  <label>客户阶段：</label>
			  <select class="add_select" name="client_stage">
				<option value="1">一阶段</option>
				<option value="2">二阶段</option>
				<option selected="" value="3">LP</option>
			  </select>
		    </p>
		    <p>
			  <label>助教/教练资格：</label>
			  <input type="checkbox" name="assistant_check" value="1">有助教/教练职格
			  <select class="add_select" name="assistant">
				<option value="">等级</option>
				<option value="10">一级</option>
				<option selected="" value="50">二级</option>
				<option value="100">三级</option>
			  </select>
		    </p>
		    <p>
			  <label>客户来源：</label>
			  <input name="client_source" type="text" size="30" value="{$data.client_source}" />
		    </p>
		    <p>
			  <label>3C确认：</label>
			  <input name="three_c" type="text" size="30" value="{$data.three_c}" />
		    </p>
		    <p>
			  <label>健康状况：</label>
			  <input name="health" type="text" size="30" value="{$data.health}" />
		    </p>
		    <p>
			  <label>身份证复印件：</label>
			  <label style="width:120px;"><input type="radio" name="is_idcard" value="0" <if condition="$data['is_idcard'] eq 0"> checked="checked"</if>>提交<input type="radio" name="is_idcard" value="1" <if condition="$data['is_idcard'] eq 1"> checked="checked"</if>>未提交</label>
		    </p>
		    <p>
			  <label>外系统上课：</label>
			  <input name="is_outer" type="text" size="30" value="{$data.is_outer}" />
		    </p>
		    <p>
			  <label>意向课程：</label>
			  <select class="add_select" name="intention_course">
				<option value="1">一阶段</option>
				<option value="2">二阶段</option>
				<option selected="" value="3">LP</option>
			  </select>
		    </p>
		    <dl class="nowrap">
			  <dt>成功宣言：</dt>
			  <dd><textarea rows="2" cols="80" name="succeed" class="textInput">{$data.succeed}</textarea></dd>
		    </dl>
		    <p style="width:100%;background:#B8D0D6;margin:5px 0 5px 0;"><a href="javascript:;" style="float: right;display: inline-block" class="index_show">展开</a><span style="font-size: 18px;">联系方式</span></p>
		    <dl class="nowrap client_border client_none ">
			  <dt class="add_hiegth">联系方式：</dt>
			  <dd>
				<table cellpadding="0" cellspacing="0">
				    <tr>
					  <td>
						<label style="width: 80px;">办公电话:</label><input name="lt[bgphone]" type="text" size="20" value="{$data.tel.bgphone}" />
						<label style="width: 80px;">移动电话:</label><input name="lt['ydphone']" type="text" size="20" value="{$data.tel.ydphone}" />
						<label style="width: 80px;">宅电:</label><input name="lt['zphone']" type="text" size="20" value="{$data.tel.zphone}" />
					  </td>
				    </tr>
				    <tr>
					  <td>
						<label style="width: 80px;">传真:</label><input name="lt[cz]" type="text" size="20" value="{$data.tel.cz}" />
						<label style="width: 80px;">地子邮件:</label><input name="lt[email]" type="text" size="20" value="{$data.tel.email}" />
						<label style="width: 80px;">QQ/MSN:</label><input name="lt[qq]" type="text" size="20" value="{$data.tel.qq}" />
					  </td>
				    </tr>
				    <tr>
					  <td>
						<label style="width: 80px;">邮编:</label><input name="lt[postcode]" type="text" size="20" value="{$data.tel.postcode}" />
						<label style="width: 80px;">通讯地址:</label><input name="lt[address]" type="text" size="20" value="{$data.tel.address}" />
					  </td>
				    </tr>
				</table>


			  </dd>

		    </dl>
		<p style="width:100%;background:#B8D0D6;margin:5px 0 5px 0;"><a href="javascript:;" style="float: right;display: inline-block" class="index_show">展开</a><span style="font-size: 18px;">EOM信息</span></p>
		<dl class="nowrap client_border client_none ">
			  <dt class="add_hiegth">EOM信息：</dt>
			  <dd>
			    <table>
				  <tr>
					<td>
					    <label style="width: 80px;">EMO1姓名:</label><input name="emo[name]" type="text" size="20" value="{$data.emo_info.name}" />
					    <label style="width: 80px;">省市:</label><input name="emo[city]" type="text" size="20" value="{$data.emo_info.city}" />
					    <label style="width: 80px;">公司:</label><input name="emo[company]" type="text" size="20" value="{$data.emo_info.company}" />
					</td>
				  </tr>
				  <tr>
					<td>
					    <label style="width: 80px;">电话:</label><input name="emo[phone]" type="text" size="20" value="{$data.emo_info.phone}" />
					    <label style="width: 80px;">阶段:</label><input name="emo[jd]" type="text" size="20" value="{$data.emo_info.jd}" />
					</td>
				  </tr>
			    </table>
			    <table>
				  <tr>
					<td>
					    <label style="width: 80px;">EMO2姓名:</label><input name="emo[name2]" type="text" size="20" value="{$data.emo_info.name2}" />
					    <label style="width: 80px;">省市:</label><input name="emo[city2]" type="text" size="20" value="{$data.emo_info.city2}" />
					    <label style="width: 80px;">公司:</label><input name="emo[company2]" type="text" size="20" value="{$data.emo_info.company2}" />
					</td>
				  </tr>
				  <tr>
					<td>
					    <label style="width: 80px;">电话:</label><input name="emo[phone2]" type="text" size="20" value="{$data.emo.phone2}" />
					    <label style="width: 80px;">阶段:</label><input name="emo[jd2]" type="text" size="20" value="{$data.emo.jd2}" />
					</td>
				  </tr>
			    </table>
				    <!--<label style="width: 80px;">EMO2姓名:</label><input name="emo[]" type="text" size="20" value="" />
				    <label style="width: 80px;">省市:</label><input name="emo[]" type="text" size="20" value="" />
				    <label style="width: 80px;">公司:</label><input name="emo[]" type="text" size="20" value="" />
				    <label style="width: 80px;">电话:</label><input name="emo[]" type="text" size="20" value="" />
				    <label style="width: 80px;">阶段:</label><input name="emo[]" type="text" size="20" value="" />-->
			  </dd>
		    </dl>
		<p style="width:100%;background:#B8D0D6;margin:5px 0 5px 0;"><a href="javascript:;" style="float: right;display: inline-block" class="index_show">展开</a><span style="font-size: 18px;">配偶情况</span></p>
		<dl class="nowrap client_border client_none ">
			  <dt class="add_hiegth">配偶情况：</dt>
			  <dd>
				<table cellspacing="1">
				    <tr>
					  <td>
						<label style="width: 80px;">婚姻状况:</label><input name="peiou[state]" type="text" size="20" value="{$data.spouse.state}" />
						<label style="width: 80px;">姓名:</label><input name="peiou[name]" type="text" size="20" value="{$data.spouse.name}" />
						<label style="width: 80px;">学历:</label><input name="peiou[ecucation]" type="text" size="20" value="{$data.spouse.ecucation}" />
					  </td>
				    </tr>
				    <tr>
					  <td>
						<label style="width: 80px;">结婚纪念日:</label><input name="peiou[marryDay]" type="text" size="20" value="{$data.spouse.marryDay}" />
						<label style="width: 80px;">工作单位:</label><input name="peiou[unit]" type="text" size="20" value="{$data.spouse.unit}" />
						<label style="width: 80px;">联系方式:</label><input name="peiou[phone]" type="text" size="20" value="{$data.spouse.phone}" />

					  </td>
				    </tr>
				    <tr>
					  <td>
						<label style="width: 80px;">爱好:</label><input name="peiou[love]" type="text" size="20" value="{$data.spouse.love}" />
					  </td>
				    </tr>
				</table>
			  </dd>
		    </dl>
		<p style="width:100%;background:#B8D0D6;margin:5px 0 5px 0;"><a href="javascript:;" style="float: right;display: inline-block" class="index_show">展开</a><span style="font-size: 18px;">父母情况</span></p>
		<dl class="nowrap client_border client_none ">
			  <dt class="add_hiegth">父母情况：</dt>
			  <dd>
				<table>
				    <tr>
					  <td>
						<label style="width: 80px;">父亲姓名:</label><input name="parent[father_name]" type="text" size="20" value="{$data.parents.father_name}" />
						<label style="width: 80px;">出生日期:</label><input name="parent[father_birthday]" type="text" size="20" value="{$data.parents.father_birthday}" />
						<label style="width: 80px;">工作单位:</label><input name="parent[father_unit]" type="text" size="20" value="{$data.parents.father_unit}" />
					  </td>
				    </tr>
				    <tr>
					  <td>
						<label style="width: 80px;">联系方式:</label><input name="parent[father_phone]" type="text" size="20" value="{$data.parents.father_phone}" />

					  </td>
				    </tr>
				    <tr>
					  <td>
						<label style="width: 80px;">母亲姓名:</label><input name="parent[mother_name]" type="text" size="20" value="{$data.parents.mother_name}" />
						<label style="width: 80px;">出生日期:</label><input name="parent[mother_birthday]" type="text" size="20" value="{$data.parents.mother_birthday}" />
						<label style="width: 80px;">工作单位:</label><input name="parent[mother_unit]" type="text" size="20" value="{$data.parents.mother_unit}" />
					  </td>
					  <td>
				    </tr>

				    <tr>
					  <td>
						<label style="width: 80px;">联系方式:</label><input name="parent[mother_phone]" type="text" size="20" value="{$data.parents.mother_phone}" />
					  </td>
				    </tr>
				</table>
			  </dd>
		    </dl>
		<p style="width:100%;background:#B8D0D6;margin:5px 0 5px 0;"><a href="javascript:;" style="float: right;display: inline-block" class="index_show">展开</a><span style="font-size: 18px;">子女情况</span></p>
		<dl class="nowrap client_border client_none ">
			  <dt>子女情况：</dt>
			  <dd>
				<table>
				    <tr>
					  <td>
						<label style="width: 80px;">姓名:</label><input name="children[name]" type="text" size="20" value="{$data.children.name}" />
						<label style="width: 80px;">姓别:</label><input name="children[sex]" type="text" size="20" value="{$data.children.sex}" />
						<label style="width: 80px;">出生日期:</label><input name="children[birthday]" type="text" size="20" value="{$data.children.birthday}" />
					  </td>
				    </tr>
				    <tr>
					  <td>
						<label style="width: 80px;">教育情况:</label><input name="children[eduaction]" type="text" size="20" value="{$data.children.eduaction}" />
						<label style="width: 80px;">爱好:</label><input name="children[love]" type="text" size="20" value="{$data.children.love}" />

					  </td>
				    </tr>
				</table>
				<table>
				    <tr>
					  <td>
						<label style="width: 80px;">姓名:</label><input name="children[name2]" type="text" size="20" value="{$data.children.name2}" />
						<label style="width: 80px;">姓别:</label><input name="children[sex2]" type="text" size="20" value="{$data.children.sex2}" />
						<label style="width: 80px;">出生日期:</label><input name="children[birthday2]" type="text" size="20" value="{$data.children.birthday2}" />
					  </td>
				    </tr>
				    <tr>
					  <td>
						<label style="width: 80px;">教育情况:</label><input name="children[eduaction2]" type="text" size="20" value="{$data.children.eduaction2}" />
						<label style="width: 80px;">爱好:</label><input name="children[love2]" type="text" size="20" value="{$data.children.love2}" />

					  </td>
				    </tr>
				</table>
			  </dd>
		    </dl>
		    <p>
			  <label>是否大客户：</label>
			  <input name="is_big" type="text" size="30" value="{$data.is_big}" />
		    </p>
		    <dl class="nowrap">
			  <dt>短信祝福：</dt>
			  <dd><textarea rows="2" cols="80" name="message_benediction" class="textInput">{$data.message_benediction}</textarea></dd>
		    </dl>
		    <dl class="nowrap">
			  <dt>短信祝福：</dt>
			  <dd><textarea rows="2" cols="80" name="notice" class="textInput">{$data.message_benediction}</textarea></dd>
		    </dl>

		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
	  <script>
		$(function(){
		    $('.index_show').click(function(){
			  var index_s = $(this);
			  if(index_s.parent().next(".nowrap").hasClass('client_none')){
				index_s.parent().next(".nowrap").removeClass('client_none').addClass("client_show");
				index_s.parent().next(".nowrap").show("slow");
				index_s.html('收缩');
			  }else{
				index_s.parent().next(".nowrap").removeClass('client_show').addClass("client_none");
				index_s.parent().next(".nowrap").hide("slow");
				index_s.html('展开');
			  }
		    })
		})


	  </script>
